#include<iostream>
using namespace std;
int main()
{
	int i,j;
	char a ;
	cin >> a;
	for (i = 1; i <= 3; i++)
	{
		for (j = 1; j <= 3 - i; j++)
		{
			printf(" ");
		}
		for (j = 1; j <= i*2-1; j++)
		{
			printf("%c",a);
			}
		
		printf("\n");
	}
	for (i = 1; i <= 3; i++)
	{
		for (j = 1; j <= i; j++)
		{
			printf(" ");
		}
		for (j = 1; j <= 2*(3-i)-1; j++)
		{
			printf("%c",a);
		}
		printf("\n");
	}
	return 0;

}